import request from '@/utils/request'

// 获取维修员个人信息
export const getMaintainerInfoService = () => request.get('/maintainer/getmaintainerinfo')
// 维修记录
export const getMaintainListService = () => request.get('/maintainer/getmaintainlist')
// 接单
export const takeOrderListService = () => request.get('/maintainer/takeorderlist')
// 特邀订单
export const AssignTakeOrderService = () => request.get('/maintainer/assigntakeorder')

// 上传头像
export const uploadMAvatarService = (avatar) => request.post('/maintainer/avatar', { avatar })

// 确认接单
export const confirmTakeOrderService = (id) => request.post('/maintainer/confirmorder', { id })

// 更新订单
export const updateOrderService = (obj) => request.post('/maintainer/updateorder', obj)

// 修改密码
export const updatePwdSewrvice = (oldPwd, newPwd) => request.post('/maintainer/updatepwd', { oldPwd, newPwd })

// 查询维修员评分
export const getScoreService = () => request.get('/maintainer/getscore')

// 修改维修员信息
export const updateInfoService = (obj) => request.post('/maintainer/updateInfo', obj)
